from common import *

def List2StreamFunc(in0,out0):
    while True:
        val0 = in0()

        if (type(val0) == type([])):
            for v in val0:
                out0(v)
